<ul class="breadcrumb">
  <li><a href="/"><i class="fa fa-home"></i> 首页</a></li>
  <li class="active"><a href=""><i class="fa fa-book"></i> 课程列表</a></li>
</ul>
<div class="panel panel-default">
  <div class="panel-heading"><i class="fa fa-book"></i> 课程列表</div>
  <div class="panel-body">
    <form action="<?= Yii::app()->createUrl('lesson/list') ?>" method="get" class="form-inline">
      <label for="keywords" class="control-label">课程名称</label>
      <input type="search" name="keywords" id="keywords" placeholder="搜索课程名称" style="width: 200px" class="form-control">
      <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i>搜索</button>
    </form>
    <p></p>
    <?php if (!empty($lesson['list'])): ?>
      <?php foreach ($lesson['list'] as $key => $row): ?>
        <?php include(Yii::app()->basePath . '/views/component/lesson-article-item.php'); ?>
      <?php endforeach ?>
    <?php else: ?>
        <div class="alert alert-info">对不起，没有找到您要的信息</div>
    <?php endif ?>
    <?php
    $this->widget('CLinkPager', array(
        'pages' => $lesson['pages'],
        'htmlOptions' => array(
            'class' => 'pagination'
        ),
        'firstPageLabel' => '首页',
        'lastPageLabel' => '末页',
        'nextPageLabel' => '下一页',
        'prevPageLabel' => '上一页',
        'footer' => '',
        'header' => '',
        'cssFile' => false
    ));
    ?>
  </div>

</div>
<script>
  initPage();
</script>